package com.myj.jim.dao;

import java.util.List;
import java.util.Map;

import com.myj.jim.domain.Operator;
import com.myj.jim.domain.OperatorRole;
import com.myj.jim.domain.OperatorRoleAuthority;
import com.myj.jim.domain.bootstraptable.BootstrapTable;

public interface OperatorDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Operator record);

    int insertSelective(Operator record);

    Operator selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Operator record);

    int updateByPrimaryKey(Operator record);
    
    public List<Operator> findPage(Map<String,Object> map);
    
    public int count(Map<String,Object> map);
    
    public int isExist(String loginid);
    
    public Operator selectOperatorByLoginidAndPassword(Operator op);
    
    public void insertOperatorRole(Map<String, String> map);
    
    public List<OperatorRole> selectOperatorRoleByLoginid(String loginid);
    
    public void deleteOperatorRoleByLoginid(String loginid);
    
    public List<OperatorRoleAuthority> selectOperatorRoleAuthorityByLoginid(String loginid);
    
    public List<Operator> getOperatorListByIds(Map<String,String> map);
}